<?php
namespace app\pmh\controller;

use think\worker\Server;

class Worker extends Server
{   
    public function onWorkerStart($work){
        
        $a = new Index();
        $a->add_timer();
        
    }
}